import request from '@/utils/request'

/**
 * 获取文章
 * @param {string} channel_id 频道ID
 * @param {string} timestamp  时间戳，请求新的推荐数据传当前的时间戳，请求历史推荐传指定的时间戳
 * @returns
 */
export const NewArticlesAPI = (channel_id, timestamp) =>
  request({
    url: '/v1_0/articles',
    params: {
      channel_id,
      timestamp
    }
  })
